package com.sardine.base.design;

/**
 * 上海京东到家元信信息技术有限公司<br>
 * Created with IntelliJ IDEA.
 * Date:2017/10/9
 * Time:14:00
 * 事件对象
 * @author daifeng<br>
 *         daifeng@imdada.cn
 * @since JDK 1.7 <br>
 * Copyright (c) 2017 imdada System Incorporated All Rights Reserved.
 */
public class RobotEvent<T> {

    /**
     * 事件类型
     */
    private String type;

    /**
     *
     * 事件参数
     *
     */
    private T param;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public T getParam() {
        return param;
    }

    public void setParam(T param) {
        this.param = param;
    }

    public RobotEvent(String type, T param) {
        this.type = type;
        this.param = param;
    }
}
